export interface ResponseData {
  message: string
  code: number
  ok: boolean
}

export interface permissionObj {
  id?: number
  createTime: string
  updateTime: string
  pid: number
  name: string
  code: string
  toCode: string
  type: number
  level: number
  children: permissionRecord
}
export type permissionRecord = permissionObj[]

export interface ResponsePermission extends ResponseData {
  data: permissionRecord
}
export interface MenuParams {
  id?: number
  code: string // 权限数值
  level: number // 几级菜单
  name: string // 菜单的名字
  pid: number // 菜单的ID
}
